﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TencentMapSdk.Entity
{
    /// <summary>
    /// 删除数据
    /// </summary>
    public class CloudDeleteData
    {
        /// <summary>
        /// 开发者key
        /// </summary>
        [JsonProperty("key")]
        public string Key { get; set; }
        /// <summary>
        /// 表id，即表的唯一标识
        /// </summary>
        [JsonProperty("table_id")]
        public string TableId { get; set; }
        /// <summary>
        /// <para>修改条件，目前最多一次修改20条</para>
        /// <para>1.目前仅只支持filter=id in(“id_string1”,“id_string2”,“id_string3”) 条件表达式</para>
        /// <para>2.当表ud_id启用唯一性约束后，可使用filter=ud_id in(“aaa”,“bbb”) 条件更新数据（id与ud_id为字符型字段，注意加""）</para>
        /// </summary>
        [JsonProperty("filter")]
        public string Filter { get; set; }
    }

    /// <summary>
    /// 删除数据
    /// </summary>
    public class CloudDeleteDataResult
    {
        /// <summary>
        /// 删除成功的数据条数
        /// </summary>
        [JsonProperty("count")]
        public int Count { get; set; }
    }
}
